<?php


namespace app\common\validate;


use think\Validate;

class Banks extends Validate
{
    protected $rule=[
//        'tel|手机/账号' => 'require|length:11|regex:/^[1][3456789][0-9]{9}$/',
        'card_holder|持卡人名字' => 'require|max:25',
        'bank_name|银行卡名称' => 'require|max:25',
        'bank_branch_name|银行分行名称' => 'require|max:25',
        'bank_account|银行卡号' => 'require',

    ];
    protected $message=[
//        'tel.require'             =>  '手机必须填写',
//        'tel.regex'               =>  '联系电话格式不正确',
        'card_holder.require'          =>  '持卡人名字不能为空',
        'bank_name.require'          =>  '银行卡名称不能为空',
        'bank_account.require'          =>  '银行卡号不能为空',
        'bank_branch_name.require' =>'银行分行名称'

    ];


}